<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<html>
	<head>
		<title>组织结构管理</title>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_useTree" value="true"/>
		</jsp:include>
		<SCRIPT>
	var obj=null;
	function  clickEvent(nodeObj)
	{
		//选择类型type=single或type=mulit
		var type = "${param.type}";
		//人员身份，根据需要传入可选择的人员身份，personnelIdentification=003001,003002,003003......
		var personnelIdentification = "${param.personnelIdentification}";
		//在岗状态
		var onJobSituation = "${param.onJobSituation}";
		
		obj = nodeObj;
		var str=obj.getAttribute("id");
		var tmp=str.split("#");
		var orgId=tmp[0];
		var orgName = tmp[1];
		var url="";
		if(orgId.length==1)
			url+="&empEmployee.companyId="+orgId;
		else if(orgId.length==3)
			url+="&empEmployee.companyId="+orgId+"&empEmployee.companyName="+orgName;
		else
			url+="&empEmployee.deptId="+orgId+"&empEmployee.deptName="+orgName;
		url+="&type="+type;
		url+="&personnelIdentification="+personnelIdentification;
		url+="&onJobSituation="+onJobSituation;
		
		window.parent.frame_right.location.href="listCommonEmployee.do?jspPage=/jsp/common/org_emp/lst_employee.jsp"+url;
	}

</script>
	</head>
	<body>
		<div id="body_div">
	<w:ShowTitle name="组织人员查看">
	</w:ShowTitle>
	<div id="body_content">
<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">
           <TR>
             <TD>
      <w:tree returnValue="orgId#orgName" regex="#"
      displayValue="orgName" pidname="orgPid" 
      content="${datalist}" idname="orgId" headValue="0" 
      headDisplayValue="${orgOrganization.orgName}"></w:tree>
			</TD>
	</TR>
       </TABLE>
       </div>
	</div>	
	</body>
</html>
